<h1>Editing group</h1>

<%= error_messages_for :group %>

<% form_for(:group, :url => group_path(@group), :html => { :method => :put }) do |f| %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Description</b><br />
    <%= f.text_area :description %>
  </p>

  <p>
    <b>Owner</b><br />
    <%= f.text_field :owner_id %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', group_path(@group) %> |
<%= link_to 'Back', groups_path %>